package duaxe.home.entity;

import java.util.ArrayList;
import java.util.List;

import duaxe.home.entity.Entity;
import duaxe.home.entity.particle.Particle;
import duaxe.home.level.Level;

public class Spawner extends Entity {
	private List<Entity> entities = new ArrayList<Entity>();
	
	public enum Type{
		PARTICLE, MOB;
	}
	private Type type;
	
	
	public Spawner(int x, int y, Type type, int amount, Level level){
		init(level);
		this.x = x;
		this.y =y;
		this.type = type; 
		for(int i=0; i< amount; i++){
			if(type==type.PARTICLE){
			level.add(new Particle(x, y, 50, amount));
			}
			
		}
		
	}
	
}
